package com.ld.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ld.pojo.Student;
import com.ld.service.StudentSerivce;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("student")
public class StudentController {

	@Reference
	private StudentSerivce studentService;

	@GetMapping("list")
	public List<Student> findAll(){
		return studentService.findAll();
	}

}
